<?php

class MShift extends CI_Model{

	public function __construct()
	    {
	        parent::__construct();
	    }
	
	 function getShiftDropDown(){
	     $data = array();
	     $this->db->select('shift_id,title');
	     $Q = $this->db->get('shift');
	     if ($Q->num_rows() > 0){
	       foreach ($Q->result_array() as $row){
	         $data[$row['shift_id']] = $row['title'];
	       }
	    }
	    $Q->free_result();  
	    return $data; 
	 }
	
	 
	
}

?>